package com.ocom.payconfig.po;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.Date;


/**
 * 传输到统一支付中心的实体
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CompanyPo {


    @NotBlank(message = "商户名称不能为空")
    private String companyName;

    private String companyId;

    @NotBlank(message = "用户名不能为空")
    private String userName;

    @NotBlank(message = "密码不能为空")
    private String payPassword;

    @NotBlank(message = "盐值不能为空")
    private String paySalt;

    @NotBlank(message = "支付渠道不能为空")
    private String payChannel;

    @JSONField(name = "isEverySet")
    @NotBlank(message = "是否需要配置设备的支付不能为空")
    private Boolean isEverySet;

    @NotBlank(message = "创建时间不能为空")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    @NotBlank(message = "是否锁定不能为空")
    private Boolean locked;

    @NotBlank(message = "联系人")
    private String contactName;

    @NotBlank(message = "联系电话")
    private String contactNumber;

    @NotBlank(message = "联系地址")
    private String contactAddress;

    private String oldPayChannel="";


}